home *** CD-ROM | disk | FTP | other *** search
/ Champak 61 / Volume 61 - JOGO DISK .iso / Games / fruit_cake_decoration.swf / scripts / DefineSprite_189_dec52_link / frame_1 / DoAction.as
Text File  |  2008-03-12  |  551b  |  33 lines

  1. this.onPress = function()
  2. {
  3.    if(_root.end == "off")
  4.    {
  5.       startDrag(this,0);
  6.    }
  7. };
  8. this.onRelease = function()
  9. {
  10.    if(_root.end == "off")
  11.    {
  12.       stopDrag();
  13.       _root.level = _root.level + 1;
  14.       this.swapDepths(_root.level);
  15.    }
  16. };
  17. this.onReleaseOutside = function()
  18. {
  19.    stopDrag();
  20. };
  21. this.onEnterFrame = function()
  22. {
  23.    if(_root.reset == "on")
  24.    {
  25.       this.removeMovieClip();
  26.    }
  27.    if(this.hitTest(_root.gar_mc))
  28.    {
  29.       _root.gar_mc.gotoAndPlay(2);
  30.       this.removeMovieClip();
  31.    }
  32. };
  33.